<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>v-text & v-html</title>
  <script src="../assets/js/vue.js"></script>
</head>
<body>
  <h1>v-text & v-html</h1>
  <hr>
  <div id="app">
    <span>{{ message }}</span>
    <br>
    <span v-text="message"></span>
    <br>
    <span v-html="htmlEle"></span>
  </div>
  <script>
    var app = new Vue({
      el: '#app',
      data: {
        message: 'v-text & v-html',
        htmlEle: '<a href="#">我是a标签</a>'
      }
    })
  </script>
</body>
</html>